package br.edu.ufersa.scrumgame.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.ejb.Stateless;

import br.edu.ufersa.scrumgame.modelo.SprintBacklog;

@Stateless
public class SprintBacklogDAO extends GenericDAO<SprintBacklog> {
	
	public SprintBacklogDAO() {
		super(SprintBacklog.class);
	}

	public List<SprintBacklog> findConcluidoByEmail(String email) {
		Map<String, Object> parameters = new HashMap<String, Object>();
		parameters.put("email", email);

		return (List<SprintBacklog>) super.findResults("SprintBacklog.findConcluidoByEmail", parameters);
	}

	public List<SprintBacklog> findByEmail(String email) {
		Map<String, Object> parameters = new HashMap<String, Object>();
		parameters.put("email", email);

		return (List<SprintBacklog>) super.findResults("SprintBacklog.findByEmail", parameters);
	}
	
}
